//默认分页样式
export const pagination = {
    current: 1, //当前页码
    total: 0, // 总条数
    pageSize: 10, //每页中显示10条数据
    showTotal: total => `共${total} 条数据`, //分页中显示总的数据
    showSizeChanger: true,
}


//======================


//门禁门禁表头
export const wayTable = [


    {
        title: '终端MAC',
        align: 'center',
        width: 170,
        dataIndex: 'clientMac',
        ellipsis: true,

    },

    {
        title: '门禁名称',
        align: 'center',
        width: 150,
        ellipsis: true,
        dataIndex: 'name',

    },


    {
        title: '终端IP',
        align: 'center',
        dataIndex: 'clientIp',
        width: 150,

    },




    {
        title: '状态',
        align: 'center',
        width: 120,
        dataIndex: 'status',
        scopedSlots: {
            customRender: 'status'
        }

    },


    {
        title: '授权人数',
        align: 'center',
        dataIndex: 'staffTotal',
        width: 100,

    },

    {
        title: '备注',
        align: 'left',

        dataIndex: 'remark',


    },

    {
        title: '管理员',
        align: 'center',
        dataIndex: 'masterName',
        width: 100,
        scopedSlots: {
            customRender: 'masterName'
        }

    },

    {
        title: '操作',
        dataIndex: 'operation',
        align: 'center',
        width: 200,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];


//门禁授权表头
export const authorizeTable = [
    {
        title: '任务标题',
        align: 'left',
        dataIndex: 'title',
        width: 250,
    },
    {
        title: '任务状态',
        width: 100,
        align: 'left',
        dataIndex: 'status',
        scopedSlots: {
            customRender: 'status'
        }
    },

    {
        title: '任务描述',
        align: 'left',
        scopedSlots: {
            customRender: 'description'
        }
    },


    {
        title: '操作',
        dataIndex: 'operation',
        align: 'center',
        width: 250,
        scopedSlots: {
            customRender: 'operation'
        }
    }
];


//通知日志表表头
export const noticeTable = [


    {
        title: '事件',
        align: 'left',
        dataIndex: 'event',
        width: 100,
        ellipsis: true,

    },

    {
        title: '人员代码',
        align: 'left',
        dataIndex: 'staffCode',
        width: 100,
        ellipsis: true,

    },

    {
        title: '人员名称',
        align: 'left',
        dataIndex: 'staffName',
        width: 100,
        ellipsis: true,

    },


    {
        title: '指纹标识',
        align: 'left',
        dataIndex: 'fingerCode',
        width: 100,
        ellipsis: true,

    },


    {
        title: '通知时间',
        align: 'center',
        width: 150,
        ellipsis: true,
        dataIndex: 'createTime'

    },

    {
        title: '通知结果',
        align: 'left',
        dataIndex: 'noticeMessage',
        width: 150,
        ellipsis: true,

    },


    {
        title: '执行时间',
        align: 'center',
        width: 150,
        ellipsis: true,
        dataIndex: 'updateTime'

    },


    {
        title: '执行结果',
        align: 'left',
        dataIndex: 'doneMessage',
        width: 150,
        ellipsis: true,

    },


];


//统计记录表头
export const recordTable = [

    {
        title: '终端MAC',
        align: 'center',
        width: 170,
        dataIndex: 'clientMac',

    },

    {
        title: '门禁名称',
        align: 'center',
        width: 170,
        dataIndex: 'wayName',

    },


    {
        title: '人员编号',
        align: 'center',
        width: 170,
        dataIndex: 'staffCode',

    },


    {
        title: '人员姓名',
        align: 'center',
        width: 170,
        dataIndex: 'staffName',

    },




    {
        title: '所属部门',
        align: 'center',
        width: 170,
        dataIndex: 'deptName',

    },

    {
        title: '人员职务',
        align: 'center',
        width: 170,
        dataIndex: 'positionName',

    },


    {
        title: '通行时间',
        align: 'center',
        dataIndex: 'authorizeTime',
        width: 150,

    }


];


//当前门禁有权限的人员列表
export const wayStaffTable = [


    {
        title: '人员编号',
        align: 'center',
        width: 170,
        dataIndex: 'staffCode',

    },


    {
        title: '人员姓名',
        align: 'center',
        width: 170,
        dataIndex: 'staffName',

    },


    {
        title: '所属部门',
        align: 'center',
        width: 170,
        dataIndex: 'deptName',

    },


    {
        title: '人员职务',
        align: 'center',
        width: 170,
        dataIndex: 'positionName',

    },


];

